const express = require('express')
// 导入控制层代码
const {handleRegister,handleLogin} = require('../controller/userController')

// 引入路由对象
const router = express.Router()

// 把请求挂载到router对象
router.get('/register', handleRegister)
router.get('/login', handleLogin)

// 导出router对象
module.exports = router